package com.lk.base.config;

import org.hibernate.resource.jdbc.spi.StatementInspector;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class JpaInterceptor implements  StatementInspector {

	Logger log = LoggerFactory.getLogger(this.getClass());

	@Override
	public String inspect(String sql) {
		//System.out.println("拦截器：" + SqlUtil.AddOrganzationPermission(sql, "a", "id"));
		log.info(sql);
		return sql;
	}

}
